package org.eiahe.hr.attendance.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.time.LocalDate;

/**
 * 节假日表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_holiday")
public class Holiday extends BaseEntity {

    /**
     * 节假日ID
     */
    @TableId(value = "holiday_id", type = IdType.AUTO)
    private Long holidayId;

    /**
     * 节假日日期
     */
    private LocalDate holidayDate;

    /**
     * 节假日名称
     */
    private String holidayName;

    /**
     * 是否调休日(0否 1是)
     */
    private String isCompensatory;

    /**
     * 年份
     */
    private Integer year;

    /**
     * 状态(0正常 1停用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    @TableLogic
    private String delFlag;
}
